/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package models;

import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 *
 * @author Kaoutar Azagagh
 */
public class sub extends HttpServlet{

    @Override
    protected void doPost(HttpServletRequest request, HttpServletResponse response)
            throws ServletException, IOException {
        String pspid = "Three2Learn";
        String amount = "5000";
        String l = "nl_NL";
        String orderId = "12345";
        String currency = "EUR";
        String pass = "projectPDL06";
        String sha = SHA1.encrypt(pspid+amount+orderId+currency+pass);
        
        request.setAttribute("sha", sha);
        request.setAttribute("amount",amount);
        request.setAttribute("orderId", orderId);
        request.setAttribute("pspid", pspid);
        request.setAttribute("l",l);
        request.setAttribute("cur",currency);
    }
}
